<template>
  <div>{{ userInfo.name}}</div>
  <div style="border-top: 1px solid red;"></div>
</template>

<script>
import useUserStore from '../store/index'
import {mapState} from "pinia";
export default {
  name: "Top",
  computed: {
    ...mapState(useUserStore,['userInfo'])
  }
}
</script>

<style scoped>

</style>